import Vue from 'vue'
import { Button } from 'element-ui'
import { Form, FormItem } from 'element-ui'
import { Input } from 'element-ui'
// 导入弹框提示，Message是需要全局挂载的
import { Message } from 'element-ui'
import { Container,Header,Aside,Main } from 'element-ui'
import { Menu,Submenu,MenuItem } from 'element-ui'
import { Breadcrumb,
  BreadcrumbItem,
  Card,
  Row,
  Col,
  TableColumn,
  Table,
  Switch,
  Tooltip,
  Pagination,
  Dialog,
  Select,
  Option } from 'element-ui'
  // 单独导入弹出框
  import { 
    MessageBox,
    Tag,
    Tree
   } from 'element-ui'

// 通过vue.use将引入的组件注册为全局组件
Vue.use(Button)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Container)
Vue.use(Header)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Card)
Vue.use(Col)
Vue.use(Row)
Vue.use(TableColumn)
Vue.use(Table)
Vue.use(Switch)
Vue.use(Tooltip)
Vue.use(Pagination)
Vue.use(Dialog)
Vue.use(Select)
Vue.use(Option)
Vue.use(Tag)
Vue.use(Tree)
// Vue.use(Alert)
// 将Message挂载到全局上
Vue.prototype.$message = Message;
Vue.prototype.$confirm = MessageBox.confirm;
